<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
    <title>修改信息</title>
    <jsp:include page="head.jsp"></jsp:include>
</head>

<body>

<div class="x-body">
    <form class="layui-form" id="f_auto" action="${pageContext.request.contextPath}/updateDormRepair" method="post">
        <input type="hidden" value="${sessionScope.d.r_id}" name="r_id" id="r_id"/>
        <div class="layui-form-item">
            <label for="s_dormitoryid" class="layui-form-label">
                <span class="">宿舍编号</span>
            </label>
            <div class="layui-input-inline">
                <select id="s_dormitoryid" name="s_dormitoryid">
                    <option value="">${sessionScope.d.s_dormitoryid}</option>
                    <c:forEach var="c" items="${dormitoryList}">
                        <option value="${c.s_dormitoryid}">${c.s_dormitoryid}</option>
                    </c:forEach>
                    <%--<option value="111">111</option>
                    <option value="112">112</option>
                    <option value="311">311</option>
                    <option value="322">322</option>
                    <option value="312">312</option>
                    <option value="313">313</option>
                    <option value="323">323</option>
                    <option value="423">423</option>
                    <option value="601">601</option>
                    <option value="602">602</option>--%>
                </select>
            </div>
        </div>

        <div class="layui-form-item">
            <label for="d_dormbuilding" class="layui-form-label">
                <span class="">宿舍楼</span>
            </label>
            <div class="layui-input-inline">
                <select id="d_dormbuilding" name="d_dormbuilding">
                    <option value="">${sessionScope.d.d_dormbuilding}</option>

                    <c:forEach items="${dormitoryList}" var="c">
                        <option value="${c.d_dormbuilding}">${c.d_dormbuilding}</option>
                    </c:forEach>
                    <%--<option value="23号楼">23号楼</option>
                    <option value="24号楼">24号楼</option>
                    <option value="25号楼">25号楼</option>
                    <option value="26号楼">26号楼</option>
                    <option value="27号楼">27号楼</option>--%>
                </select>
            </div>
        </div>

        <div class="layui-form-item">
            <label for="r_name" class="layui-form-label">
                <span class="">维修人员</span>
            </label>
            <div class="layui-input-inline">
                <input type="text" id="r_name" name="r_name"
                       autocomplete="off" value="${sessionScope.d.r_name}" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label for="reason" class="layui-form-label">
                <span class="">报修事由</span>
            </label>
            <div class="layui-input-inline">
                <input type="text" id="reason" name="reason"
                       autocomplete="off" value="${sessionScope.d.reason}" class="layui-input">
            </div>
        </div>

        <input type="hidden" value="${sessionScope.d.update_time}" name="update_time" id="update_time"/>

        <div class="layui-form-item" id="btn_xg">
            <button class="layui-btn" id="btn_on" lay-submit="" lay-filter="updateClass">
                修改
            </button>
        </div>
    </form>
</div>

<script>
</script>
</body>
</html>

